<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta id="plat_viewport" name="viewport" content="width=device-width, initial-scale=0.5, user-scalable=no, target-densitydpi=device-dpi">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <title><?php echo $user['name']; ?>-用户</title>
    <link rel="shortcut icon" href="<?php echo base_url('file/images/mayi.ico') ?>" type="image/x-icon" />
    <link rel="stylesheet" type="text/css" href="<?php echo base_url('file/css/wap.css') ?>">
</head>
<body>
<section class="conbg user">
    <header class="otherbanner" id="home">
        <h1><?php echo $user['name']; ?>-用户</h1>
    </header>
    <nav id="nav" class="nav">
        <img src="<?php echo base_url('file/images/nav_img.png') ?>" width="30px">

        <ul class="nav_title">
            <li><a href="<?php echo base_url('home') ?>">首 页</a></li>
            <li><a href="<?php echo base_url('skill') ?>">技 能</a></li>
            <li><a href="<?php echo base_url('project/prolist') ?>">博 客</a></li>
            <li><a href="<?php echo base_url('movie/movielist') ?>">电 影</a></li>
            <li><a href="<?php echo base_url('photo') ?>">相 册</a></li>
            <li><a href="<?php echo base_url('team') ?>">我们团队</a></li>
            <li><a href="<?php echo base_url('about') ?>">关 于</a></li>
        </ul>
    </nav>

    <div class="othercontent" style="padding: 0">
        <div class="user_box">
            <div class="user_left">
                <div class="box_basic clearfix">
                    <img src="<?php echo base_url('images/header/'. $user['logo']); ?>">
                    <div class="basic">
                        <a href="<?php echo base_url('project/publish'); ?>"><p class="write">撰写</p></a>
                        <p><?php echo $user['name']; ?></p>
                        <span><?php if ($user['sex'] == 0) {echo '女';} else {echo '男';}; ?></span>
                        <span><?php echo $user['user']; ?></span>
                        <span><?php echo $user['time']; ?></span>
                        <div class="btn_box">
                            <button class="editbtn">编辑简历</button>
                            <button class="authbtn">账户认证</button>
                        </div>
                    </div>
                </div>
                <div class="box_info clearfix">
                    <p class="pro_tit">我的文章</p>
                    <ul>
                        <?php for($i = 0; $i < count($projects); $i++) { ?>
                            <li>
                                <a href="<?php echo base_url('project/detail/'.$projects[$i]['proid']); ?>">
                                    <div class="pro_box clearfix">
                                        <img class="pro_cover" src="<?php echo base_url('images/'.$projects[$i]['cover']); ?>">
                                        <div class="pro_info">
                                            <h1><?php echo $projects[$i]['title']; ?></h1>
                                            <div class="pro_other">
                                                <span><?php echo $projects[$i]['createtime']; ?></span>
                                                <img class="m_l_15 pro_tag" src="<?php echo base_url('file/images/nav_ser_icon.png'); ?>" width="12px" height="12px">
                                                <span><?php echo $projects[$i]['skim']; ?></span>
                                                <img class="m_l_10 pro_tag" src="<?php echo base_url('file/images/nav_ser_icon.png'); ?>" width="12px" height="12px">
                                                <span><?php echo $projects[$i]['zan']; ?></span>

                                                <span class="m_l_20"><?php echo $projects[$i]['name']; ?></span>
                                            </div>
                                            <p class="substr_2">
                                                <?php echo $projects[$i]['prodesc']; ?>
                                            </p>
                                            <a href="<?php echo base_url('project/edit/'.$projects[$i]['proid']); ?>" class="edit_pro"><span>编 辑</span></a>
                                        </div>
                                    </div>
                                </a>
                            </li>
                        <?php } ?>
                    </ul>
                    <button class="morebtn">更多文章</button>
                </div>
            </div>
            <div class="user_right">
                <div class="box_progress">
                    <div class="circle_box clearfix">
                        <div class="progress clearfix"></div>
                    </div>
                    <div class="progress_info clearfix">
                        <span class="title">我的简历完成90%</span>
                        <span class="line"></span>
                        <span class="edit">编辑简历</span>
                    </div>
                </div>
                <div class="box_other">
                    <p>我的活跃指数:</p>
                    <div class="index_box">
                        <img src="<?php echo base_url('file/images/nav_ser_icon1.png') ?>" width="20px" height="20px">
                        <span class="m_l_5">31次</span>
                        <img class="m_l_20" src="<?php echo base_url('file/images/nav_ser_icon1.png') ?>" width="20px" height="20px">
                        <span class="m_l_5">31次</span>
                        <img class="m_l_20" src="<?php echo base_url('file/images/nav_ser_icon1.png') ?>" width="20px" height="20px">
                        <span class="m_l_5">31次</span>
                    </div>
                    <p>我的访客</p>
                    <div class="user_box clearfix">
                        <ul>
                            <?php for($i = 0; $i < 5; $i++) { ?>
                                <li>
                                    <div class="user clearfix">
                                        <img src="<?php echo base_url('file/images/work_item1.png') ?>" width="50px">
                                        <div class="user_info">
                                            <p>joe</p>
                                            <span>PHP 数英网@Digitaling 上海</span>
                                        </div>
                                    </div>
                                </li>
                            <?php } ?>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>

<script src="<?php echo base_url('file/js/wap.js') ?>" type="text/javascript" charset="utf-8"></script>
<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js" type="text/javascript"></script>
<script>
    index.nav(100);
</script>
</body>
</html>